﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dandan
{
    public class InboundModelsData
    {
        public String id = "";
        public String shop_id = "";
        public BaseInfo baseinfo = new BaseInfo();
        public List<NewModel> groups = new List<NewModel>();
        public NewModel group = new NewModel();
        public ModelCoverData cover;
        public String title;
        public String sn;
        public BrandClass brand;
        public String total_stock;

        public class GetModelData
        {
            public String status;
            public int code;
            public List<New_ModelsData> data = new List<New_ModelsData>();
        }

        public class BaseInfo
        {
            public String sn = "";
            public String title;
            public int cover_id;
            public BrandClass brand = new BrandClass();
            public String brand_id;
            public String description = "";
        }
        

        public class fieldsData
        {
            public int id;
            public String title;
            public String name;
            public String value;
            public String validate_rule;
        }

        public class shopsData
        {
            public String shop_id;
            public String base_price;
            public String sale_price;
            public String discount_type = "percent";            //cash/percent  折扣类型
            public String discount_value;           //折扣值
            public String stock;                        //库存
        }
    }
}